package com.ruoyi.ipms_patent.service.impl;

import com.ruoyi.ipms_patent.mapper.ApplicantMapper;
import com.ruoyi.ipms_patent.service.ApplicantService;
import com.ruoyi.system.api.entity.Applicant;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: isBao
 * @Description:TODO:申请人service实体类
 */

@Service
public class ApplicantServiceImpl implements ApplicantService {

    @Resource
    ApplicantMapper applicantMapper;

    /* 通过专利号查找申请人 */
    @Override
    public List<Applicant> findApplicantBypatentId(int patentId) {
        return applicantMapper.findApplicantBypatentId(patentId);
    }


    /* 添加申请人*/
    @Override
    public int insertApplicant(Applicant applicant) {
        return applicantMapper.insertApplicant(applicant);
    }
}
